<!DOCTYPE HTML>

<html xmlns:th="http://www.thymeleaf.org" xmlns:tiles="http://www.thymeleaf.org">
<head>
    <title tiles:fragment="title">Messages : Create</title>

</head>
<link href="./css/bootstrap.css" rel="stylesheet"></link>
<link href="./css/custom.css" rel="stylesheet"></link>
<style>
</style>

<body>
<div id="login-box">

    <legend>Please Login</legend>
    <div th:if="${param.error}" class="error">
        Invalid username and password.
    </div>
    <div th:if="${param.logout}" class="msg">
        You have been logged out.
    </div>
    <form name="f" th:action="@{/login}" method="post">
        <div class="form-group">
            <label for="username">Username</label>
            <input type="text" class="form-control" id="username" name="username" placeholder="Username"/>
        </div>
        <div class="form-group">
            <label for="password">Password</label>
            <input type="password" class="form-control" id="password" name="password" placeholder="Password"/>
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
    </form>
</div>
</body>
</html>